from pydantic import BaseModel,Field
from typing import List,Literal,Union
from datetime import date

#学生考核成绩请求体（响应体）
class Score_schema(BaseModel):
    student_id:int
    student_name:str=Field(None)
    class_name:str=Field(None)
    exam_sequence:int
    score:float

    class Config:
            orm_mode = True  # 支持从 ORM 模型转换







